package com.yupi.apiback.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 接口信息
 *
 * @author yanghaifeng
 * @TableName interface_info
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "interface_info")
@Data
public class InterfaceInfo extends SuperModel implements Serializable {
    private static final long serialVersionUID = -8345261522209964153L;

    @TableField(value = "name")
    @ApiModelProperty("接口名称")
    private String name;

    @TableField(value = "url")
    @ApiModelProperty("接口URL")
    private String url;

    @ApiModelProperty("接口描述")
    @TableField(value = "description")
    private String description;

    @ApiModelProperty("请求方法类型 GET POST")
    @TableField(value = "method_type")
    private String methodType;

    @ApiModelProperty("请求头信息")
    @TableField(value = "request_header")
    private String requestHeader;

    @ApiModelProperty("请求头参数")
    @TableField(value = "request_params")
    private String requestParams;

    @ApiModelProperty("响应头信息")
    @TableField(value = "response_header")
    private String responseHeader;

    @ApiModelProperty("接口状态；1.关闭（下线状态）；2.开启（上线状态）；")
    @TableField(value = "status")
    private String status;
}